Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@item-enonic-types/global

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@item-enonic-types/global

Global variables and functions type definition.

  • 7.13.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Global types for Enonic XP

npm version

Note There is also an official package for Global types for XP.

This library provides backwards compatibility for the old enonic-types package while moving to the new types provided by Enonic.

Contents

The following global types:

  • XP.Controller
  • XP.Request
    • XP.ErrorRequest
    • XP.CustomSelectorServiceParams
  • XP.Response
    • XP.WebSocketResponse
    • XP.CustomSelectorServiceResponseBody
  • XP.MacroContext
  • XP.WebSocketEvent
    • XP.OpenWebSocketEvent
    • XP.MessageWebSocketEvent
    • XP.CloseWebSocketEvent

Use

To use these global types you need to update the types field in your tsconfig.json with this library.

{
  "baseUrl": "./",
  "paths": {
    "/lib/xp/*": ["node_modules/@enonic-types/lib-*"]
  },
+  "types": [
+    "@item-enonic-types/global"
+  ]
}

Keywords

FAQs

Package last updated on 28 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc